package com.cloud.tsp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cloud.api.domain.screen.MapData;
import com.cloud.api.domain.sys.DeptExtend;
import com.cloud.api.domain.sys.DeptExtendQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author haohaibo
 * @since 2023-09-13
 */
public interface DeptExtendMapper extends BaseMapper<DeptExtend> {

    IPage<DeptExtend> selectDeptExtendList(Page<?> page, @Param("c") DeptExtendQuery para);

    List<DeptExtend> selectMerchantsForSpu(@Param("deptType")String deptType,@Param("stationType")String stationType);

    List<String> selectParentId(String deptType);

    IPage<DeptExtend> selectStationList(Page<?> page, @Param("c") DeptExtendQuery para);

    List<MapData>getDeptCountMap();
}
